package com.lkd.feign;

import com.lkd.entity.ChannelEntity;
import com.lkd.feign.fallback.ChannelServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "vm-service",fallbackFactory = ChannelServiceFallbackFactory.class)
public interface ChannelService {

    @GetMapping("/channel/channelInfo/{innerCode}/{channelCode}")
    public ChannelEntity getChannelInfo(@PathVariable("innerCode") String innerCode, @PathVariable("channelCode") String channelCode);
}